package com.yuyou.fn.settlement.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.settlement.entity.Withdrawal;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.settlement.vo.WithdrawalQueryVo;

import java.math.BigDecimal;

/**
 *
 * Withdrawal 表数据服务层接口
 *
 */
public interface IWithdrawalService extends ISuperService<Withdrawal,Long> {

    Page<Withdrawal> findWithdrawalByQuery(WithdrawalQueryVo withdrawalQueryVo, int pageNo, int pageSize);

    void applyWithdrawal(Long mainAccountId, BigDecimal amount, String bankName, String bankCity, String cardUser, String cardNo);

    void updateWithdrawalStatus(Long withdrawalId, Integer status);

}